package appli_Oxygene;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;

public class Periode { 

	public List<Date> dateBetween(GregorianCalendar dateDeb, GregorianCalendar dateFin){	
		List<Date>lesDates=new ArrayList<>();
		while(dateDeb.compareTo(dateFin)<0){
			lesDates.add(dateDeb.getTime());
			dateDeb.add(Calendar.DATE,1);
		}
		return lesDates;
	}
	
	public List<Date> listeHeureEvenement(GregorianCalendar d){	
		List<Date>lesDates=new ArrayList<>();
		for(int i=0;i<96;i++){
			lesDates.add(d.getTime());
			d.add(Calendar.MINUTE, 15);
		}
		return lesDates;
	}
	
}
